a11y tests: add image buttons
authorMatthias Clasen <mclasen@redhat.com>
Sat, 22 Feb 2014 16:54:48 +0000 (11:54 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 22 Feb 2014 17:31:18 +0000 (12:31 -0500)
testsuite/a11y/buttons.txt
testsuite/a11y/buttons.ui

index 8a855d58aa0d351e55b4b6e0376dd3be6af7027f..47142d85cbb46a0ffd370d9bd2751ffb56ca1ed2 100644 (file)
@@ -15,10 +15,58 @@ window1
     <AtkComponent>
     layer: widget
     alpha: 1
+    button9
+      "push button"
+      parent: grid1
+      index: 0
+      name: Close
+      state: enabled focusable sensitive showing visible
+      toolkit: gtk
+      <AtkComponent>
+      layer: widget
+      alpha: 1
+      <AtkImage>
+      image size: 16 x 16
+      image description: (null)
+      <AtkAction>
+      action 0 name: click
+      action 0 description: Clicks the button
+    button8
+      "push button"
+      parent: grid1
+      index: 1
+      name: Find and Replace
+      state: enabled focusable sensitive showing visible
+      toolkit: gtk
+      <AtkComponent>
+      layer: widget
+      alpha: 1
+      <AtkImage>
+      image size: 16 x 16
+      image description: (null)
+      <AtkAction>
+      action 0 name: click
+      action 0 description: Clicks the button
+    button7
+      "push button"
+      parent: grid1
+      index: 2
+      name: Text Button
+      state: enabled focusable sensitive showing visible
+      toolkit: gtk
+      <AtkComponent>
+      layer: widget
+      alpha: 1
+      <AtkImage>
+      image size: -1 x -1
+      image description: (null)
+      <AtkAction>
+      action 0 name: click
+      action 0 description: Clicks the button
     button6
       "toggle button"
       parent: grid1
-      index: 0
+      index: 3
       name: Test switch
       state: enabled focusable sensitive showing visible
       toolkit: gtk
@@ -31,7 +79,7 @@ window1
     button5
       "toggle button"
       parent: grid1
-      index: 1
+      index: 4
       state: checked enabled focusable sensitive showing visible
       toolkit: gtk
       <AtkComponent>
@@ -43,7 +91,7 @@ window1
     button4
       "radio button"
       parent: grid1
-      index: 2
+      index: 5
       name: Hello World!
       member-of: button4
                  button3
@@ -61,7 +109,7 @@ window1
     button3
       "radio button"
       parent: grid1
-      index: 3
+      index: 6
       name: Hello World!
       member-of: button4
                  button3
@@ -79,7 +127,7 @@ window1
     button2
       "check box"
       parent: grid1
-      index: 4
+      index: 7
       name: Hello World!
       state: enabled focusable sensitive showing visible
       toolkit: gtk
@@ -95,7 +143,7 @@ window1
     button1
       "toggle button"
       parent: grid1
-      index: 5
+      index: 8
       name: Hello World!
       state: armed checked enabled focusable sensitive showing visible
       toolkit: gtk
index b229bbb4a7c5173295f4f0845ff84f600a01972b..2489f6022e40481e7c17f908a4367f518aec3867 100644 (file)
             <property name="top_attach">0</property>
           </packing>
         </child>
+
+        <child>
+          <object class="GtkButton" id="button7">
+            <property name="visible">True</property>
+            <property name="can_focus">True</property>
+            <property name="receives_default">True</property>
+            <property name="label">Text Button</property>
+          </object>
+          <packing>
+            <property name="left_attach">0</property>
+            <property name="top_attach">1</property>
+          </packing>
+        </child>
+        <child>
+          <object class="GtkButton" id="button8">
+            <property name="visible">True</property>
+            <property name="can_focus">True</property>
+            <property name="receives_default">True</property>
+            <property name="image">image8</property>
+            <property name="halign">center</property>
+            <property name="valign">center</property>
+          </object>
+          <packing>
+            <property name="left_attach">1</property>
+            <property name="top_attach">1</property>
+          </packing>
+        </child>
+        <child>
+          <object class="GtkButton" id="button9">
+            <property name="visible">True</property>
+            <property name="can_focus">True</property>
+            <property name="receives_default">True</property>
+            <property name="halign">center</property>
+            <property name="valign">center</property>
+            <property name="image">image9</property>
+          </object>
+          <packing>
+            <property name="left_attach">2</property>
+            <property name="top_attach">1</property>
+          </packing>
+        </child>
       </object>
     </child>
   </object>
+  <object class="GtkImage" id="image8">
+    <property name="visible">True</property>
+    <property name="icon-name">edit-find-replace</property>
+    <property name="icon-size">1</property>
+  </object>
+  <object class="GtkImage" id="image9">
+    <property name="visible">True</property>
+    <property name="icon-name">window-close-symbolic</property>
+    <property name="use-fallback">True</property>
+    <property name="icon-size">1</property>
+  </object>
 </interface>